﻿using System.Linq;
using DapperWrapper;
using ZLWeb.WebApiEntity.EasyQuery;
using ZLWeb.WebApiRepository.InterFace;

namespace ZLWeb.WebApiRepository
{
    public class CustInfoRepository : Respository<CustInfoResponse>, ICustInfoRepository
    {
        public CustInfoResponse GetCustInfo(string openid)
        {
            CustInfoResponse info = new CustInfoResponse();
            var cardno = openid;
            var ctype = 2;
            var deldynosign = 0;
            var crdysign = 1;
            var item = ExecuteProcWithTemptable(info, "pr_accinfo_query", "#accinfo", false, new { cardno, ctype, crdysign, deldynosign });
            return item.FirstOrDefault();
        }
    }
}